﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 剪刀石头布游戏
{
    class UserPlayer : Player
    {
        public String PersonName(String inputName)
        {
            this.name = inputName;
            return this.name;
        }
        public override int getInputValue()
        {
            Console.WriteLine("请出拳：1.剪刀 2.石头3.布");
            int value = int.Parse(Console.ReadLine());
            if (value == 1)
            {
                Console.WriteLine("剪刀");
            }
            else if (value == 2)
            {
                Console.WriteLine("石头");
            }
            else if (value == 3)
            {
                Console.WriteLine("布");
            }
            return value;

        }


    }
}
